var app = getApp();
var that;
Page({
  data: {
    item: {}, //详情
    isCollect: false,//是否被收藏
    remind: "加载中",
    id: '',
    currVideoSrc: "",
    poster:"",
    windowHeight: app.globalData.windowHeight
  },

  onLoad: function (options) {
    that = this;
    wx.showLoading({
      title: '视频加载中',
    })
    that.setData({ currVideoSrc: app.globalData.doubanVideoUrl, poster: options.poster});
  },
  bindwaiting: function(){
    wx.showLoading({
      title: '视频加载中',
    })
  },
  bindplay: function(){
    wx.hideLoading();
  },
  handleVideoended: function(){
    wx.navigateBack({});
  },
  handleVideoErr: function(){
    wx.navigateBack({});
  },
  onHide: function () {
    that.setData({ currVideoSrc: '' });
  },

});
